class cat {
	name: string;
	age: number;
   
    constructor(name:string,age:number){
        this.name=name
        this.age=age
    }

    // 定义方法
    say(){
        console.log(`我叫${this.name},我今年${this.age},我会汪汪汪叫`);   
    }
}

let cat1= new cat("tom",18)
let cat2= new cat("mom",18)
let cat3= new cat("anle",18)
cat1.say()
cat2.say()
cat3.say()